package com.example.sdemo.api.controller;

import com.example.sdemo.app.service.ICustomerService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/*")
public class TestController {

    @Resource
    public ICustomerService iCustomerService;

    @GetMapping("/hello")
    public String test(){
        return "hello!";
    }
    @GetMapping("")
    public String no(){
        return  iCustomerService.getCustomerType();
    }
}
